/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aybolit.core.objects.dao.impl;


import aybolit.core.objects.dao.OperatorsDao;
import aybolit.core.objects.model.Operators;
import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

/**
 *
 * @author Masumov Emin
 */
public class OperatorsDaoImpl extends HibernateDaoSupport implements OperatorsDao{

    @Override
    public void addOperators(Operators operators) {

        operators.setLogin("Emin");
        getHibernateTemplate().save(operators);
    }

    @Override
    public List<Operators> findAlloperators() {
       return getHibernateTemplate().find("from Operators");
    }

}
